.class public final Lcom/burstly/lib/constants/Constants;
.super Ljava/lang/Object;
.source "Constants.java"

# interfaces
.implements Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/constants/Constants$1;,
        Lcom/burstly/lib/constants/Constants$InstanceHolder;
    }
.end annotation


# static fields
.field public static final BUILD_ID:Ljava/lang/String; = null

.field public static final BURSTLY_IMAGE:Ljava/lang/String; = "BURSTLY_IMAGE"

.field public static final BURSTLY_SCRIPT:Ljava/lang/String; = "BURSTLY_SCRIPT"

.field public static final BURSTLY_TEXT:Ljava/lang/String; = "BURSTLY_TEXT"

.field public static final BURSTLY_VIDEO:Ljava/lang/String; = "BURSTLY_VIDEO"

.field public static GLOBAL_ADAPTOR_TIMEOUT:Ljava/lang/String; = null

#the value of this static final field might be set in the static constructor
.field public static final IS_DEBUG_MODE:Z = false

.field public static final MILLIS:I = 0x3e8

.field public static final SDK_VERSION:Ljava/lang/String; = null

.field private static final TAG:Ljava/lang/String; = null

.field public static final TYPE_KEY:Ljava/lang/String; = "TYPE_KEY"

.field public static final YES:Ljava/lang/String; = "YES"


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 33
    const-class v0, Lcom/burstly/lib/constants/Constants;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/Constants;->TAG:Ljava/lang/String;

    .line 63
    const-string v0, "isDebug"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z

    move-result v0

    sput-boolean v0, Lcom/burstly/lib/constants/Constants;->IS_DEBUG_MODE:Z

    .line 69
    const-string v0, "sdk.version"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/Constants;->SDK_VERSION:Ljava/lang/String;

    .line 74
    const-string v0, "buildID"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/Constants;->BUILD_ID:Ljava/lang/String;

    .line 79
    const-string v0, "globalAdaptorTimeout"

    invoke-static {v0}, Lcom/burstly/lib/constants/BurstlyProperties;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/constants/Constants;->GLOBAL_ADAPTOR_TIMEOUT:Ljava/lang/String;

    return-void
.end method

.method private constructor <init>()V
    .locals 0

    .prologue
    .line 51
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 52
    invoke-static {p0}, Lcom/burstly/lib/service/ServerConfigurationService;->addRecipient(Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;)V

    .line 53
    return-void
.end method

.method synthetic constructor <init>(Lcom/burstly/lib/constants/Constants$1;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 28
    invoke-direct {p0}, Lcom/burstly/lib/constants/Constants;-><init>()V

    return-void
.end method

.method public static getInstance()Lcom/burstly/lib/constants/Constants;
    .locals 1

    .prologue
    .line 117
    sget-object v0, Lcom/burstly/lib/constants/Constants$InstanceHolder;->INSTANCE:Lcom/burstly/lib/constants/Constants;

    return-object v0
.end method


# virtual methods
.method public configure(Ljava/util/Map;)V
    .locals 7
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 122
    .local p1, configurationData:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v1, "globalAdaptorTimeout"

    invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 123
    .local v0, newValue:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 124
    sput-object v0, Lcom/burstly/lib/constants/Constants;->GLOBAL_ADAPTOR_TIMEOUT:Ljava/lang/String;

    .line 125
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v1

    sget-object v2, Lcom/burstly/lib/constants/Constants;->TAG:Ljava/lang/String;

    const-string v3, "Global adaptor timeout set to: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    sget-object v6, Lcom/burstly/lib/constants/Constants;->GLOBAL_ADAPTOR_TIMEOUT:Ljava/lang/String;

    aput-object v6, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 127
    :cond_0
    return-void
.end method

.method public isConstantRecepient()Z
    .locals 1

    .prologue
    .line 131
    const/4 v0, 0x1

    return v0
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    .prologue
    .line 136
    sget-object v0, Lcom/burstly/lib/constants/Constants;->TAG:Ljava/lang/String;

    return-object v0
.end method
